import {get, post, patch, myDeletd} from './index.js'


// 后台api接口写到下面

// 获取登录验证码
export const getSms = userdata => post('/api/getsms/', userdata)

// 登录接口
export const loginAction = userdata => post('/api/login/', userdata)

// 获取用户名接口
export const userInfo = () => get('/api/userinfo/')

// 更新产品数据
export const updataProduct = product => patch('/api/product/', product)

// 删除某个产品
export const deleteProduct = pid => myDeletd(`/api/product/${pid}`)


